WooCommerce\PayPalCommerce\ApiClient\Helper\PurchaseUnitSanitizer S

Total Complexity 44
Dependencies 3
Dependents 5
Total lines 313
Lines of code 154
Logical lines of code 97
Comment lines 129
Methods 17
Properties 6

Methods 17

Method Rating Maintainability Complexity Lines of code
sanitize_item_amount_mismatch()
A
48 9 29
sanitize_item_tax_mismatch()
S
60 6 13
sanitize_breakdown_mismatch()
S
60 5 13
calculate_tax_mismatch()
S
56 4 17
calculate_breakdown_mismatch()
S
57 2 17
__construct()
S
64 3 10
determine_rounding_item_category()
S
65 3 9
breakdown_value()
S
70 2 6
calculate_item_mismatch()
S
63 2 10
amount()
S
79 1 3
currency_code()
S
78 1 3
breakdown()
S
79 1 3
items()
S
79 1 3
sanitize()
S
66 1 9
has_ditched_items_breakdown()
S
82 1 3
get_last_message()
S
82 1 3
set_last_message()
S
81 1 3